package com.live.stamp.base.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import com.aliyuncs.sts.model.v20150401.AssumeRoleRequest;
import com.aliyuncs.sts.model.v20150401.AssumeRoleResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author cwd E-mail: wendong.cao@jsxfedu.com
 * @version 1
 * @date 2018/4/18 13:57
 */
@Configuration
public class OssSTSUtils {

    @Value("${oss.accessKeyID}")
    private String accessKeyID;
    @Value("${oss.accessKeySecret}")
    private String accessKeySecret;
    @Value("${oss.roleArn}")
    private String roleArn;
    @Value("${oss.tokenExpireTime}")
    private String tokenExpireTime;
    @Value("${oss.policyFile}")
    private String policyFile;
    @Value("${oss.regionId}")
    private String regionId;
    @Value("${oss.stsApiVersion}")
    private String stsApiVersion;
}
